import { axios } from "../../../utils/request";

const api = {
    pageList: "/crm/callTask/pageList",   
    addTask: "/crm/callTask/saveTask",
    detail:"/crm/callTask/detail",
    batchDelete: "/crm/callTask/batchDelete",
    closeTask: "/crm/callTask/closeTask",
    
};


/**
 * 列表
 */
export function pageList(data) {
    return axios({
      url: api.pageList,
      method: "post",
      data: data
    });
}

/**
 * 查询任务详情
 */
 export function detail(parameter) {
    return axios({
      url: api.detail,
      method: "get",
      params: parameter
    });
}

  

/**
 * 新增 任务
 */
export function addTask(data) {
  return axios({
    url: api.addTask,
    method: "post",
    data: data
  });
}

/**
 *批量删除
 */
export function batchDelete(data) {
  return axios({
    url: api.batchDelete,
    method: "post",
    data: data
  });
}

/**
 *批量 关闭
 */
 export function closeTask(data) {
    return axios({
      url: api.closeTask,
      method: "post",
      data: data
    });
  }


